import http from '../utils/request'
const CollectAPI = {

	/**收藏列表 */
	collectList: (data) => {
		return http.request({
			url: '/api/restaurant/commoditycollect/list',
			method: 'GET',
			data
		})
	},

	/**收藏 取消收藏 */
	collectSave: (data) => {
		return http.request({
			url: `/api/restaurant/commoditycollect/save?commodityId=${data.commodityId}`,
			method: 'POST',
			data
		})
	},
}
export default CollectAPI